<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	
	<p:menubar autoSubmenuDisplay="true">
	
		<p:submenu label="Cadastro" icon="ui-icon-contact">
			<p:menuitem value="#{msg['autor.menu']}" outcome="/pages/protected/user/autor/autorList.xhtml" />
			<p:menuitem value="#{msg['livro.menu']}" outcome="/pages/protected/user/livro/livroList.xhtml" />
		</p:submenu>
		
		<p:submenu label="Controle de Acesso" icon="ui-icon-locked">
			<p:menuitem value="#{msg['usuario.menu']}" outcome="/pages/protected/admin/usuario/usuarioList.xhtml" />
			<p:menuitem value="#{msg['papel.menu']}" outcome="/pages/protected/admin/papel/papelList.xhtml" />
		</p:submenu>
		
		<h:form>
			<p:menu value="Logout" action="#{loginBean.logout}" />
		</h:form>
	</p:menubar>
	
</html>

